package com.youku.plugins.endcardV4New.view
{
   import flash.display.Sprite;
   import flash.display.DisplayObject;
   
   public class RelativePanel extends Sprite
   {
      
      public function RelativePanel(param1:Number) {
         super();
         this._num = param1;
         this.init();
      }
      
      private var _boxArray:Array;
      
      private var _num:int;
      
      private function init() : void {
         this._boxArray = [];
      }
      
      public function addBox(param1:DisplayObject, param2:Number, param3:Number) : void {
         this._boxArray.push(param1);
         param1.x = param2;
         param1.y = param3;
         addChild(param1);
      }
      
      public function removeAllBox() : void {
         var _loc3_:DisplayObject = null;
         var _loc1_:int = this._boxArray.length;
         var _loc2_:* = 0;
         while(_loc2_ < _loc1_)
         {
            _loc3_ = this._boxArray.pop() as DisplayObject;
            if(contains(_loc3_))
            {
               removeChild(_loc3_);
            }
            _loc2_++;
         }
      }
      
      public function get num() : int {
         return this._num;
      }
   }
}
